<tagLib name="html" />

<include file="Public:header" />

<div class="container" id="cpcontainer">
    <h3>{$Think.lang.manage_moderators} :: {$category.name}</h3>
    <p class="tips">{$Think.lang.manage_moderators_tips}</p>
    <form name="cpform" method="post" action="__URL__/moderator" id="cpform">
    <input type="hidden" name="op" value="save" />
    <input type="hidden" name="category_id" value="{$category.category_id}" />
    <table class="tb tb2 fixpadding">
        <tr>
            <th width="12%"></th>
            <th width="15%">{$Think.lang.display_order}</th>
            <th>{$Think.lang.username}</th>
            <th width="25%">{$Think.lang.inherited_from_parent}</th>
            <th width="10%">{$Think.lang.mark}</th>
        </tr>
        <volist name="moderatorList" id="vo">
        <tr class="item">
            <td></td>
            <td class="td25"><input type="text" class="txt" name="displayOrder[{$vo.user_id}]" value="{$vo.display_order}" size="2" /></td>
            <td><a href="__APP__/Home/User/{$vo.user_id}" target="_blank">{$vo.username}</a></td>
            <td><eq name="vo.is_inherited" value="1">{$Think.lang.yes}<else/>{$Think.lang.no}</eq></td>
            <td class="td25"><input type="checkbox" class="checkbox" name="delete[{$vo.user_id}]" value="2" <eq name="vo.is_inherited" value="1">disabled</eq>/></td>
        </tr>
        </volist>
        <tr>
            <td class="td22">{$Think.lang.add_moderator}</td>
            <td class="td25"><input type="text" class="txt" name="newDisplayOrder" value="0" size="2" /></td>
            <td>
                <input type="text" class="txt" name="newModerator" value="" size="20" />&nbsp;&nbsp;
                <input  id="extend_so_sub" class="checkbox" type="checkbox" name="inherited" value="1" <lt name="category.level" value="3">checked<else/>disabled</lt> /><label for="extend_to_sub">{$Think.lang.extend_to_sub}</label>
            </td>
            <td></td>
            <td></td>
        </tr>
        <tr class="nobg">
            <td colspan="4"><div class="fixsel right"><input type="submit" class="btn" name="modsubmit" value="{$Think.lang.submit}" /></td>
            <td><input type="checkbox" name="chkall" id="chkall" class="checkbox" onclick="checkAll('prefix', this.form, 'delete')" /><label for="chkall">{$Think.lang.delete}?</label></div></td>
        </tr>
    </table>
    </form>
</div>

<include file="Public:footer" />
